package com.hzw.saas.common.config.bo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Administrator
 */
@Data
@Accessors(chain = true)
public class BaseTree implements Serializable {


    private static final long serialVersionUID = 790767730672287989L;
    /**
     *phid
     */
    public Long pid;
    /**
     *节点父id
     */
    public Long parentId;
    /**
     *节点样式，默认即可
     */
    public String iconCls = "folder";

    /**
     *是否为叶子节点，true表示是叶子节点，false表示不是叶子节点
     */
    public Boolean leaf = true;

    /**
     *是否展开，默认true,展开
     */
    public Boolean expanded = true;

    /**
     *孩子节点
     */
    public List<BaseTree> children = new ArrayList<>();


    public BaseTree(Long id, Long parentId) {
        this.pid=id;
        this.parentId=parentId;
    }

}
